package com.shaobufan.museum.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shaobufan.museum.pojo.entity.UserVerification;

import java.io.IOException;

/**
 * @author 17126
 * &#064;description  针对表【user_verification(用户验证码)】的数据库操作Service
 * &#064;createDate  2024-04-01 10:48:12
 */
public interface UserVerificationService extends IService<UserVerification> {

    /**
     * 发送验证码
     *
     * @param email 用户邮箱
     * @param uuid  用户唯一标识
     * @return 操作码
     */
    Integer sendVerificationCode(String email, String uuid) throws IOException;

    Integer checkVerificationCode(String uuid, Integer captcha);
}